from bs4 import BeautifulSoup


def main():
	soup = BeautifulSoup('<b class="boldest">Extremely bold</b>', "lxml")
	tag = soup.b
	print(soup.prettify())
	print(tag.string)
	print(tag['class'])


if __name__ == '__main__':
	main()